<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class UserController extends Controller
{
    /**
     * 显示后台用户列表
     */
    public function getShow()
    {
        return view('admins.user');
    }
    /**
     * 显示用户列表
     */
    public function getUserList()
    {
        $user =  DB::table('users')->get();
        //分配变量
        return view('admins.userlist',[
            'user'=>$user,
            ]);

    }
}
